{template 'header'}
<script type="text/javascript">var sh = '{$MOD[linkurl]}search.php?catid={$catid}';</script>
<div class="m">
<div class="m_l_1 f_l">
	<div class="left_box">		
		<div class="pos">当前位置: <a href="{$MODULE[1][linkurl]}">首页</a> &raquo; <a href="{$MOD[linkurl]}">{$MOD[name]}</a> &raquo; {cat_pos($CAT, ' &raquo; ')}</div>
		<div class="b10">&nbsp;</div>
				<div class="search_type">
	<div class="typetitle">所有类目 ></div>
		<?php
			$str = '';
			//print_r($CAT);
			if($catid)
			{
				if($CAT['child'])
				{
				$str .= "<span>类别:<a href='".DT_PATH."sell1/'>".$CAT['catname']."</a></span>";	
				}
				else
				{
					if(!$CAT['parentid'])
					{
						$str .= "<span>类别:<a href='".DT_PATH."sell1/'>".$CAT['catname']."</a></span>";	
					}
					else{
						$str .= "<span>类别:<a href='".DT_PATH."sell1/list.php?catid=".$CAT['parentid']."'>".$CAT['catname']."</a></span>";	
					}	
				}
			}  
			if(($typeid!=99 and $typeid) || $typeid==='0')
			{
				$str .= "<span>标准:<a href='".DT_PATH."sell1/index.php?rlevel=".$rlevel."&surface=".$surface."&typeid='>".$TYPE[$typeid]."</a></span>";	
			} 
		?>
			{$str}
		</div>
		<div class="sell_search" id="PropSingle">
			
			<dl>
				<dt>类别:</dt>
				<dd class="AttrBox AttrBoxt">
				{loop $maincat $k $v}
				<a href="{$MOD[linkurl]}{$v[linkurl]}">{$v['catname']}({$v[item]})</a>
				{/loop}
				</dd>
			</dl>
		</div>
		
		<div class="b10 c_b">&nbsp;</div>
		<form method="post">
		<div class="sell_tip" id="sell_tip" style="display:none;" title="双击关闭" ondblclick="Dh(this.id);">
			<div>
				<p>您可以</p>
				<input type="submit" value="对比选中" onclick="this.form.action='{$MOD[linkurl]}compare.php';" class="btn_1" onmouseover="this.className='btn_2'" onmouseout="this.className='btn_1'"/> 或 
				<input type="submit" value="批量询价" onclick="this.form.action='{$MOD[linkurl]}inquiry.php';" class="btn_1" onmouseover="this.className='btn_2'" onmouseout="this.className='btn_1'"/>
			</div>
		</div>
		<div class="img_tip" id="img_tip" style="display:none;">&nbsp;</div>
		<div class="tool">
			<table>
			<tr height="30">
			<td width="25" align="center"><input type="checkbox" onclick="checkall(this.form);"/></td>
			<td>
				<input type="submit" value="对比选中" onclick="this.form.action='{$MOD[linkurl]}compare.php';" class="btn_1" onmouseover="this.className='btn_2'" onmouseout="this.className='btn_1'"/>&nbsp;
				<input type="submit" value="批量询价" onclick="this.form.action='{$MOD[linkurl]}inquiry.php';" class="btn_1" onmouseover="this.className='btn_2'" onmouseout="this.className='btn_1'"/>
			</td>
			<td align="right">
			<input type="checkbox" onclick="Go(sh+'&price=1');"/>标价&nbsp;
			<input type="checkbox" onclick="Go(sh+'&thumb=1');"/>图片&nbsp;
			<input type="checkbox" onclick="Go(sh+'&vip=1');"/>{VIP}&nbsp;
			<select onchange="Go(sh+'&day='+this.value)">
			<option value="0">更新时间</option>
			<option value="1">1天内</option>
			<option value="3">3天内</option>
			<option value="7">7天内</option>
			<option value="15">15天内</option>
			<option value="30">30天内</option>
			</select>&nbsp;
			<select onchange="Go(sh+'&order='+this.value)">
			<option value="0">显示顺序</option>
			<option value="2">价格由高到低</option>
			<option value="3">价格由低到高</option>
			<option value="4">{VIP}级别由高到低</option>
			<option value="5">{VIP}级别由低到高</option>
			<option value="6">供货量由高到低</option>
			<option value="7">供货量由低到高</option>
			<option value="8">起订量由高到低</option>
			<option value="9">起订量由低到高</option>
			</select>&nbsp;			
			<img src="{DT_SKIN}image/list_txt.gif" width="16" height="16" alt="文字列表" align="absmiddle" class="c_p" onclick="Go(sh+'&list=2');"/>&nbsp;
			<img src="{DT_SKIN}image/list_img.gif" width="16" height="16" alt="图片列表" align="absmiddle" class="c_p" onclick="Go(sh+'&list=1');"/>&nbsp;
			<img src="{DT_SKIN}image/list_mix_on.gif" width="16" height="16" alt="图文列表" align="absmiddle" class="c_p" onclick="Go(sh+'&list=0');"/>&nbsp;
			</td>
			</tr>
			</table>
		</div>
		{if $page == 1}{ad($moduleid,$catid,$kw,6)}{/if}
		{if $tags}{template 'list-'.$module, 'tag'}{/if}
		<div class="tool">
			<table>
			<tr height="30">
			<td width="25"></td>
			<td>
				<input type="submit" value="对比选中" onclick="this.form.action='{$MOD[linkurl]}compare.php';" class="btn_1" onmouseover="this.className='btn_2'" onmouseout="this.className='btn_1'"/>&nbsp;
				<input type="submit" value="批量询价" onclick="this.form.action='{$MOD[linkurl]}inquiry.php';" class="btn_1" onmouseover="this.className='btn_2'" onmouseout="this.className='btn_1'"/>
			</td>
			</tr>
			</table>
		</div>
		</form>
		<br/>
	</div>
</div>
<div class="m_n f_l">&nbsp;</div>
<div class="m_r_2 f_l">
	<div class="sponsor">{ad($moduleid,$catid,$kw,7)}</div>
	<div class="m_r_wsearch">
	<div class="box_head_new1"><div><strong>本周搜索排行</strong></div></div>
	<div class="box_body">
		<div class="rank_list_new">
			<!--{tag("moduleid=$moduleid&table=keyword&condition=moduleid=$moduleid and status=3 and updatetime>$today_endtime-86400*7&pagesize=10&order=week_search desc&key=week_search&template=list-search_rank", -2)}-->
		</div>		
	</div>
	</div>
	<div class="b10">&nbsp;</div>
	<div class="m_r_wsearch2">
	<div class="box_head_new2"><div><strong>按地区浏览</strong> 更多>>&nbsp;</div></div>
	<div class="box_body_area">
			<table width="100%" cellpadding="3">
			{php $mainarea = get_mainarea(0)}
			{loop $mainarea $k $v}
			{if $k%4==0}<tr bgcolor="#c0d7eb">
			{elseif $k%2==0}<tr>{/if}
			<td height="25px"><a href="{$MOD[linkurl]}{rewrite('search.php?areaid='.$v['areaid'].'&typeid='.$typeid)}">{$v[areaname]}</a></td>
			{if $k%2==1}</tr>{/if}
			{/loop}
			</table>
	</div>
	</div>
</div>
</div>
{template 'footer'}
<script>
	$(function(){
			//筛选菜单展开收起
		$("#PropSingle dd.AttrBoxt").each(function(){
			var len = $(this).children().length;
			if(len >8){
				$(this).before("<dd class='more cu'>更多</dd>");
				var category = $(this).children('a:gt(7)'),moreBtn = $(this).siblings(".more");
				category.hide();
				moreBtn.click(function(){
					if(category.is(":visible")){
						category.hide();
						moreBtn.removeClass("on").text("更多");
					}else{
						category.show();
						moreBtn.addClass("on").text("隐藏");
					}
				})
			}
		})
		
	});/**/
</script>